
import { createApp } from 'vue'
import App from './App.vue'
import router from './router';
import { createPinia } from 'pinia';
import i18n from './locales'

import Antd from 'ant-design-vue';
import "@ant-design-vue/pro-layout/dist/style.css"; 
import ProLayout, { PageContainer } from "@ant-design-vue/pro-layout";
import * as antIcons from '@ant-design/icons-vue';

import './mock'
import './permission'
import './global.less'

const app = createApp(App);
// 注册组件
Object.keys(antIcons).forEach(key => {
    app.component(key, antIcons[key])
})
// 添加到全局
app.config.globalProperties.$antIcons = antIcons;

app.use(router).use(createPinia()).use(i18n).use(Antd).use(ProLayout).use(PageContainer).mount("#app");